<div class="container-fluid">
    <h1>Create form</h1>
    <?php $Subject = $viewModel->get("subjects"); ?>
    <?php include 'views/Include/alert.php'; ?>
    <form class="form-horizontal" method="POST">
        <div class="control-group">
            <label class="control-label" for="inputLessionName">Lession Name</label>
            <div class="controls">
                <input type="text" id="inputLessionName" name="lession_name" placeholder="Lession Name" required="required">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputSubjectID">Subject</label>
            <div class="controls">
                <select id="inputSubjectID" name="subject_id">
                    <?php
                    foreach ($Subject as $subject) {
                        echo "<option value='" . $subject->subject_id . "'>" . $subject->subject_name . "</option>";
                    }
                    ?>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputTheory">Theory</label>
            <div class="controls">
                <input type="text" id="inputTheory" name="theory" value="0" >
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputLab">Lab</label>
            <div class="controls">
                <input type="text" id="inputLab" name="lab" value="0" >
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputStatus">Status</label>
            <div class="controls">
                <select name="status">
                    <option value="1">Active</option>
                    <option value="0">Deactive</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn btn-success">Submit</button>
                <button type="reset" class="btn">Reset</button>
            </div>
        </div>
    </form>
</div>